package com.xwaf.platform.web.controller.x.hander;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.xwaf.platform.common.api.CommonResponse;
import com.xwaf.platform.system.api.entity.hander.TradeOrder;
import com.xwaf.platform.system.api.service.hander.TradeOrderService;

import io.swagger.annotations.Api;
import springfox.documentation.annotations.ApiIgnore;

@RestController
@ApiIgnore
@Api(tags = "责任链", hidden = true)
@RequestMapping(value = "/x/rbc")
public class ResponsibilityChainController {

	@Autowired
	private TradeOrderService tradeOrderService;

	@GetMapping("/testRbc")
	@ResponseBody
	public CommonResponse testRbc() throws Exception {
		TradeOrder checkOrder = tradeOrderService.checkOrder();
		return CommonResponse.createCommonResponse(checkOrder);
	}
}
